package com.ruoyi.shopManager.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shopManager.mapper.MetaverseShopManagerMapper;
import com.ruoyi.shopManager.domain.MetaverseShopManager;
import com.ruoyi.shopManager.service.IMetaverseShopManagerService;

import javax.annotation.Resource;

/**
 * 店长管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-19
 */
@Service
public class MetaverseShopManagerServiceImpl implements IMetaverseShopManagerService 
{
    @Resource
    private MetaverseShopManagerMapper metaverseShopManagerMapper;


    /**
     * 查询店长管理
     * 
     * @param shopManagerId 店长管理主键
     * @return 店长管理
     */
    @Override
    public MetaverseShopManager selectMetaverseShopManagerByShopManagerId(Long shopManagerId)
    {
        return metaverseShopManagerMapper.selectMetaverseShopManagerByShopManagerId(shopManagerId);
    }

    /**
     * 查询店长管理列表
     * 
     * @param metaverseShopManager 店长管理
     * @return 店长管理
     */
    @Override
    public List<MetaverseShopManager> selectMetaverseShopManagerList(MetaverseShopManager metaverseShopManager)
    {
        return metaverseShopManagerMapper.selectMetaverseShopManagerList(metaverseShopManager);
    }

    /**
     * 新增店长管理
     * 
     * @param metaverseShopManager 店长管理
     * @return 结果
     */
    @Override
    public int insertMetaverseShopManager(MetaverseShopManager metaverseShopManager)
    {
        metaverseShopManager.setCreateTime(DateUtils.getNowDate());
        return metaverseShopManagerMapper.insertMetaverseShopManager(metaverseShopManager);
    }

    /**
     * 修改店长管理
     * 
     * @param metaverseShopManager 店长管理
     * @return 结果
     */
    @Override
    public int updateMetaverseShopManager(MetaverseShopManager metaverseShopManager)
    {
        metaverseShopManager.setUpdateTime(DateUtils.getNowDate());
        return metaverseShopManagerMapper.updateMetaverseShopManager(metaverseShopManager);
    }

    /**
     * 批量删除店长管理
     * 
     * @param shopManagerIds 需要删除的店长管理主键
     * @return 结果
     */
    @Override
    public int deleteMetaverseShopManagerByShopManagerIds(Long[] shopManagerIds)
    {
        return metaverseShopManagerMapper.deleteMetaverseShopManagerByShopManagerIds(shopManagerIds);
    }

    /**
     * 删除店长管理信息
     * 
     * @param shopManagerId 店长管理主键
     * @return 结果
     */
    @Override
    public int deleteMetaverseShopManagerByShopManagerId(Long shopManagerId)
    {
        return metaverseShopManagerMapper.deleteMetaverseShopManagerByShopManagerId(shopManagerId);
    }

    @Override
    public List<MetaverseShopManager> selectMetaverseShopManagerListAOP(Long shopId) {

        return metaverseShopManagerMapper.selectMetaverseShopManagerListAOP(shopId);
    }

    @Override
    public List<MetaverseShopManager> selectMetaverseShopManagerListAbc(List<Long> id) {
        return metaverseShopManagerMapper.selectMetaverseShopManagerListAbc(id);
    }

    @Override
    public  List<MetaverseShopManager> selectMetaverseShopManagerByshopManagerAccount(String shopManagerAccount) {
        return metaverseShopManagerMapper.selectMetaverseShopManagerByshopManagerAccount(shopManagerAccount);
    }

}
